module.exports = {
    publicPath: './',
    assetsDir: 'static',
    productionSourceMap: false,

    pwa: {
        iconPaths: {
            favicon32: './logo32X32.png',
            favicon16: './logo32X32.png',
            appleTouchIcon: './logo32X32.png',
            maskIcon: './logo32X32.png',
            msTileImage: './logo32X32.png'
        }
    },
    devServer: {
        proxy: {
            '/cost': {
                target: 'http://192.168.1.240:9000/cost',
                changeOrigin: true,
                pathRewrite: {
                    '^/cost': ''
                }
            },
            '/quality': {
                target: 'http://192.168.1.240:9000/quality',
                changeOrigin: true,
                pathRewrite: {
                    '^/quality': ''
                }
            },
            // 成本管理接口代理
            '/': {
                target: 'http://192.168.1.240:9000/',
                changeOrigin: true,
                pathRewrite: {
                    '^/': ''
                }
            }
        }
    }
}
